package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * appUser对象 tb_app_user
 *
 * @author laowang
 * @date 2022-07-05
 */
@NoArgsConstructor
@Data
public class TbAppUser implements Serializable{
    private static final long serialVersionUID=1L;

    /** $column.columnComment */
    @ApiModelProperty(value = "${comment}", required = false)
    @NotNull(message = "用户id 不能为空")
    private Long userId;

    /** 手机号 */
    @Excel(name = "手机号")
    @ApiModelProperty(value = "手机号", required = false)
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    @ApiModelProperty(value = "密码", required = false)
    private String password;

    /** 余额 */
    @Excel(name = "余额")
    @ApiModelProperty(value = "余额", required = false)
    private BigDecimal account;

    /** 彩票币 */
    @Excel(name = "彩票币")
    @ApiModelProperty(value = "彩票币", required = false)
    private Long lotteryMoney;

    /** 头像 */
    @Excel(name = "头像")
    @ApiModelProperty(value = "头像", required = false)
    private String avatarUrl;

    @ApiModelProperty(value = "昵称", required = false)
    private String nickname;

    /** 老板boss,staff */
    @Excel(name = "老板boss,staff")
    @ApiModelProperty(value = "老板boss,staff", required = false)
    private String role;

    @ApiModelProperty(value = "支付密码", required = false)
    private String payPassword;

    @Transient
    @ApiModelProperty(value = "重复支付密码", required = false)
    private String rePayPassword;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "1已认证,0未认证", required = false)
    private Integer isAuth;

    @ApiModelProperty(value = "上级id", required = false)
    private Long superiorId;// 上级id


}

